//
//  CommonApi.h
//  Meets-ios
//
//  Created by liumingkong on 14-6-20.
//  Copyright (c) 2014年 meets. All rights reserved.
//

#import <Foundation/Foundation.h>

//login & registration
#define MOBILE_VERIFY   @"/mobile/code"

#define SIGNUP_TYPE     @"/signup/type"

// social
#define SOCIAL_BIND     @"/social/bind"
#define SOCIAL_UNBIND   @"/social/unbind"
#define SOCIAL_CONTACTS @"/social/contacts"


//location
#define LOCATION_PRIVACY_USER   @"/location/privacy/user"
#define LOCATION_LOCATE         @"/location/locate"
#define LOCATION_USER_LOCATE    @"/location/user/locate"
#define LOCATION_NEARBY_USER    @"/location/nearby/user/v3"
#define GLOBAL_ROAMING_NEARBY   @"/location/nearby/user"


//user profile
#define USERS_SHOW                  @"/users/show/basic"
#define USERS_BASIC                 @"/users/basic"
#define USERS_V2_PHOTOWALL          @"/users/v2/photowall"
#define USERS_VISITORS_LATEST       @"/users/visitors/latest"
#define USERS_PASSWORD_UPDATE       @"/users/password/update"
#define USERS_PASSWORD_RESET        @"/users/password/reset"
#define USERS_RECENT_V2             @"/users/recent/v2"
#define USERS_RECOMMEND_V2          @"/users/recommend/v2"
#define USERS_BAN                   @"/users/ban"
#define USER_ADMIN_BAN              @"/user/ban"
#define USER_AUDIO_INTRO            @"/users/audio_intro"
#define USER_AUDIO_INTRO_REMOVE     @"/users/audio_intro/remove"
#define USERS_DESTROY               @"/users/destroy"
#define USER_AVATAR_UPDATE          @"/users/avatar"
#define USER_ACCOUNT_UPDATE         @"/users/account/update"
#define USER_SEARCH                 @"/users/search"
#define USER_IDENTITY               @"/users/identity"
#define USER_BACKGROUND_IMAGE       @"/users/background/v2"
#define USER_MY_FEED_COUNT          @"/users/general/counter"
#define USERS_FREQUENCY             @"/users/general/frequency"
#define USERS_SHUFFLE               @"/shuffle/users"
#define USERS_LANGUAGES_UPDATE      @"/users/language/update"
#define USERS_LIVEDPLACE_UPDATE     @"/users/lived_place/update"
#define USERS_ABOUTME_UPDATE        @"/users/aboutme/update"
#define USERS_RELATIONSHIP_UPDATE   @"/users/relationship/update"
#define USERS_SCHOOL                @"/users/educations"
#define USERS_PROFILE               @"/users/profile"
#define USERS_REGION_LIST           @"/users/region/list"
#define USERS_REGION_UPDATE         @"/users/place/update"
#define USERS_REMARK_UPDATE         @"/users/remark/update"

//Group
#define GROUPS_CREATE               @"/groups/create"
#define GROUPS_DESTROY              @"/groups/destroy"
#define GROUPS_SHOW                 @"/groups/show"
#define GROUPS_QUIT                 @"/groups/quit"
#define GROUPS_MEMBER_ADD           @"/groups/member/add"
#define GROUPS_MEMBER_BATCH_ADD     @"/groups/member/batch_add"
#define GROUPS_MEMBER_DELETE        @"/groups/member/delete"
#define GROUPS_MEMBER_BATCH_DELETE  @"/groups/member/batch_delete"
#define GROUPS_SEARCH               @"/groups/search"
#define GROUPS_CREATED              @"/groups/created"
#define GROUPS_JOINED               @"/groups/joined"
#define GROUPS_REFUSE_INVITE        @"/groups/refuse_invite"
#define GROUPS_REFUSE_APPLY         @"/groups/refuse_apply"
#define GROUPS_INVITE               @"/groups/invite_add_group"
#define GROUPS_APPLY                @"/groups/apply_add_group"
#define GROUPS_SHOW_BATCH           @"/groups/show_batch"
#define GROUPS_MEMBER_CHECK         @"/groups/member/is_member"
#define GROUPS_MEMBER_IDS_SHOW      @"/groups/member/show"
#define GROUPS_MEMBER_PROFILE_SHOW  @"/aggregation/group/members"
#define GROUPS_UPDATE               @"/groups/update"


//CONV
#define PROTOCOL_CONV_DELETE    @"/protocol/conv/delete"
#define PROTOCOL_MSG_DELETE     @"/protocol/msg/delete"


//relation
#define RELATION_ADD            @"/relation/add"
#define RELATION_REMOVE         @"/relation/remove"
#define RELATION                @"/relation"
#define RELATION_RELATIONS_ALL  @"/relation/relations/all"
#define RELATION_RELATIONS      @"/relation/relations"
#define RELATION_FANS           @"/relation/fans"
#define RELATION_COUNT          @"/relation/count"

//feed
#define FEED_DETAIL             @"/circle"
#define FEED_UPDATE             @"/circle/post"         //发布一条动态
#define FEED_PHOTOWALL_UPDATE   @"/circle/post/v2"
#define FEED_DESTROY            @"/circle/delete"       //删除一个动态
#define FEED_TIMELINE_V3        @"/circle/circles/v3"      //分页查询一个用户的所有动态

#define FEED_TOP_POPULAR_V3     @"/circle/top/popular/v3" //最新动态v2
#define FEED_RECENT_V3          @"/circle/recent/v3"    // 根据地理位置的最新微博
#define FEED_FOLLOWING_V3       @"/circle/following/v3" // 我关注人的动态v2
#define FEED_BAN                @"/circle/ban"          // 举报一条feed

// like
#define LIKE_FEED           @"/circle/like"         // 赞一条动态
#define LIKE_TO_ME          @"/circle/liked"        // 我收到的赞,历史
#define LIKE_TO_ME_LATEST   @"/circle/liked/latest" // 我收到的赞,新的
#define LIKE_TO_FEED        @"/circle/likes/v2"        // 获取一条动态的最新赞列表
#define LIKE_COUNT          @"/circle/like/count"

//comment
#define COMMENT_CREATE      @"/circle/comment/post/v2"     //  发布一条评论
#define COMMENTS            @"/circle/comments/v2"      //  评论过该feed的人
#define COMMENTED           @"/circle/commented/v2"        //  查历史的评论
#define COMMENTED_LATEST    @"/circle/commented/latest" //  查新增的评论
#define COMMENT_DELETE      @"/circle/comment/delete"   //  删除一条评论

//payment
#define PAYMENT_CONFIRM                  @"/payment/confirm/v2"
#define ENQUIRE_SUBSCRIPTION_PRODUCT     @"/subscription/init/ios"      // 向服务器查询订阅订单
#define SUBSCRIPTION_PAYMENT_CONFIRM     @"/subscription/confirm/ios"   // 订购支付完成，确定订单
#define PAYMENT_MICOMONEY_CONFIRM        @"/payment/currency/confirm/ios"  //MICO币充值验证接口

//礼物中心拉取数据接口
#define MICOGIFT_CENTER         @"/gift/center"

//notice
#define NOTICE_LATEST           @"/notice/latest"           // 检查是否有新的赞、评论、访客
#define NOTICE_LATEST_CIRCLE    @"/notice/latest/circle"    // 返回一个genericresult，表示是否有新动态

// 服务刷新
#define END_POINT           @"/endpoint.json"

// 文件系统
#define FILE_API_DOWNLOAD           @"/download"
#define FILE_API_THUMBNAIL          @"/thumbnail"
#define FILE_API_DOWNLOAD_PREFEX    @"file/download"
#define FILE_API_UPLOAD             @"/file/upload"
#define FILE_API_LOG_UPLOAD         @"/file/report/log"

#define LOG_FEEDBACK        @"/logs/feedback"
#define ECHO_FEEDBACK       @"/echo"
#define RECEIPT_ACK       @"/receipt/ack"    // 消息回执
#define LOG_OUT           @"/logout"

// 翻译
#define TRANSLATION_GET     @"/translate/get"

// 动态权限
#define FEED_STATE              @"/setting/circle/permission"           //获取当前用户的评论动态权限
#define FEED_STATE_UPDATE       @"/setting/circle/permission/update"    //更新当前用户的评论权限
#define SETTING_MESSAGE_GUIDE   @"/setting/message/guide"
#define SETTING_ADVERTISE       @"/setting/advertise"

#define LABEL_LIST           @"/users/labels"
#define REQUEST_CODE         @"/users/verify/request"
#define REQUEST_CHECK        @"/users/verify/check"
#define POST_LABEL           @"/users/labels/user"

#define GIFT_SELF_RECEIVED        @"/gift/record/self/received"
#define GIFT_SELF_SEND            @"/gift/record/send"
#define GIFT_OTHER_RECEIVED       @"/gift/record/other/received"
